/*
 * ClientName.cpp
 *
 *  Created on: 28/05/2012
 *      Author: sebastian
 */
#include "Cliente.h"
#include "Atributoconsulta.h"

int main(int argc, char* argv[]) {
	Cliente c;
	c.conectar();
	Atributo_consulta* a1 = new Atributo_consulta("IPHONE", D, 0);
	//Atributo_consulta* a2 = new Atributo_consulta("Gonzalo", D, 1);
	Consulta cons(0, 1);
	cons.insertarAtributo(a1);
	//cons.insertarAtributo(a2);
	c.enviarConsulta(&cons);
	std::string resp = c.recibirRespuesta();
	std::cout << resp;
	c.desconectar();
}
